package sentStruct;

import java.util.ArrayList;
import java.util.List;



public class Verb extends  PartOfSpeech{
	
	

	public Verb() {
		super();
		
	}

	public Verb(String value) {
		super(value);		
	}
	private List<Adverb> adverbs;

	public List<Adverb> getAdverbs() {
		return adverbs;
	}

	public void setAdverbs(List<Adverb> adverbs) {
		this.adverbs = adverbs;
	}
	
	public String toString(){
		String adv="";
		if (this.adverbs!=null) {
			adv= " ADVERB(S): ";
			for (Adverb a: adverbs )
				adv+=a+" ";
		}
		return super.toString()+adv;
	}
	
	public void addAdverb(Adverb adverb){
		if (this.adverbs==null)
			this.adverbs= new ArrayList<Adverb>();
		this.adverbs.add(adverb);
	}
	public boolean hasAdverbs(){
		
		if (this.adverbs!=null&&this.adverbs.size()!=0)
			return true;
		else return false;
	}

}
